package com.pubinfo.passbook.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.pubinfo.passbook.common.entity.TPersonFeedback;
import com.pubinfo.passbook.common.model.dto.feedback.TPersonFeedbackParam;
import com.pubinfo.passbook.common.model.vo.FeedbackListVo;
import com.pubinfo.passbook.common.model.dto.feedback.FeedbackParam;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xuhong
 * @since 2022-02-28
 */
public interface TPersonFeedbackService extends IService<TPersonFeedback> {

    /**
     * 添加用户反馈接口
     * @param feedbackVo
     * @return
     */
    JsonResult<String> addTPersonFeedback(FeedbackParam feedbackVo) throws UnirestException;


    /**
     * 查询反馈列表
     * @return
     */
    IPage<TPersonFeedback> selectFeedbackList(TPersonFeedbackParam tPersonFeedbackParam);

    /**
     * 查询反馈详细
     * @param id
     * @return
     */
    FeedbackListVo selectFeedbackDetailed(String id);

    /**
     * 修改反馈状态
     * @return
     */
    Integer updateFeedback(String id);
}
